/**
 * Created by Administrator on 2017/8/4.
 */

const datePicker = resolve => require(['@/pages/demo/datePicker'], resolve);
const list = resolve => require(['@/pages/demo/list'], resolve);
const listAdd = resolve => require(['@/pages/demo/listAdd'], resolve);
const tree = resolve => require(['@/pages/demo/tree'], resolve);
const tab = resolve => require(['@/pages/demo/tab'], resolve);
const message = resolve => require(['@/pages/demo/message'], resolve);
const cascader = resolve => require(['@/pages/demo/cascader'], resolve);
const layout = resolve => require(['@/components/layout'], resolve);
const houseTableDemo = resolve => require(['@/pages/demo/demo'], resolve);
const projectStructure = resolve => require(['@/pages/demo/projectStructure'], resolve);
const httpClientDemo = resolve => require(['@/pages/demo/httpClientDemo'], resolve);
const transfer = resolve => require(['@/pages/demo/transfer'], resolve);
const lookupDemo = resolve => require(['@/pages/demo/lookup'], resolve);
const numberInputDemo = resolve => require(['@/pages/demo/numberInputDemo'], resolve);
const projectTree = resolve => require(['@/pages/demo/projectTree'], resolve);
const previewImg = resolve => require(['@/pages/demo/previewImg'], resolve);

export default {
  path: '/demo',
  name: '模板',
  icon: 'icon-wxbzhuye',
  component: layout,
  children: [
    {
      path: 'lookupDemo',
      component: lookupDemo,
      name: 'lookup'
    },
    {
      path: 'projectTree',
      component: projectTree,
      name: '项目结构树'
    },
    {
      path: 'datePicker',
      component: datePicker,
      name: '日期时间'
    },
    {
      path: 'numberInputDemo',
      component: numberInputDemo,
      name: '数字输入框'
    },
    {
      path: 'index',
      name: '列表首页',
      component: list,
    },
    {
      path: 'add',
      name: '新增',
      hidden: true,
      component: listAdd,
    },
    {
      path: 'tree',
      component: tree,
      name: '树'
    },
    {
      path: 'tab',
      component: tab,
      name: '选项卡'
    },
    {
      path: 'message',
      component: message,
      name: '弹窗'
    },
    {
      path: 'cascader',
      component: cascader,
      name: '级联'
    },
    {
      path: 'houseTable',
      component: houseTableDemo,
      name: '房源树示例'
    },
    {
      path: 'projectStructure',
      component: projectStructure,
      name: '项目结构维护'
    },
    {
      path: 'httpClientDemo',
      component: httpClientDemo,
      name: 'http請求'
    },
    {
      path: 'transfer',
      component: transfer,
      name: '穿梭框'
    },
    {
      path: 'preview',
      component: previewImg,
      name: '图片预览'
    }
  ]
}
